<?php
include('top.php');
require_once('pasmy/dbwaarden.php');
if(empty($_SESSION['taal'])) {
	session_destroy();
		Header( "HTTP/1.1 301 Moved Permanently" );
		 
		Header( "Location: login.php" ); 
}
/*echo "dbhost = $dbhost<br>";*/
echo "<br><br>";
$mysql_id = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($db, $mysql_id);
$spreken = $_SESSION["taal"];
$sql = "select nr,landcode,$spreken from kengetallen order by $spreken";
//echo "sql = $sql<br>";
$res = mysql_query($sql, $mysql_id);

?>

<table cellpadding="3" cellspacing="0" border="1" align="center"> 

<?php
echo "<tr><td class='delsaux2'>" . $kengetal[$taal] . "</td><td class='delsaux2'>$landcode[$taal]</td><td class='delsaux2'>$land[$taal]</td></tr>";



while ($row = mysql_fetch_row($res)) {
	
	echo "<tr><td class='center'>$row[0]</td><td class='center'>$row[1]</td><td class='center'>$row[2]</td></tr>";
	}


echo "</table>";
include('footer.php');
?>